<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Cineplanet - Login</title>
<SCRIPT language="JavaScript" src="<%= request.getContextPath() %>/javascript/funcionesgenerales.js"></script>
<SCRIPT language="JavaScript" src="<%= request.getContextPath() %>/javascript/ValidacionesGenerales.js"></script>
<script language="JavaScript" src="<%= request.getContextPath() %>/javascript/AC_RunActiveContent.js" ></script>
<script language="javascript">
function F_submit(){
			if (document.frm_login.txt_Usuario.value==""){
   			alert("Ingrese Usuario!!");document.frm_login.txt_Usuario.focus();}
			else if (document.frm_login.txt_Clave.value==""){
			alert("Ingrese Clave!!");document.frm_login.txt_Clave.focus();}
			else{
   
    document.frm_login.action='<%= request.getContextPath() %>/servletlogin';
    document.frm_login.submit(); }
  }
  function f_Limpiar(){
    /* esta funcion invoca al servlet login para validar usuario*/
    document.frm_login.reset();
  }

  function keyEnter() {
    var key;
	key= window.event.keyCode;
	if (key == 13){
      document.frm_login.txt_Clave.focus();
    }
  }

  function keyEnter1() {
    var key;
	key= window.event.keyCode;
	if (key == 13){
		document.frm_login.action='servletlogin';
		document.frm_login.submit();
    }
  }
</script>
</head>

<body > 
<form id="frm_login" name="frm_login" method="post" action="">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <!--DWLayoutDefaultTable-->
  <tr>
    <td width="30" height="360">&nbsp;</td>
    <td width="700" valign="top"><table width="700" border="0" align="center" cellpadding="0" cellspacing="0" background="<%= request.getContextPath() %>/imagenes/fondos/PaginaLogeo_SICOPRI.jpg">
      <!--DWLayoutTable-->
      <tr>
        <td width="488" height="182">&nbsp;</td>
        <td width="154" height="182">&nbsp;</td>
        <td width="58" height="182">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td height="25" colspan="5" valign="top">
              <p>
                <input name="txt_Usuario" type="text" id="txt_Usuario" maxlength="20" onKeyUp="frm_login.txt_Usuario.value=frm_login.txt_Usuario.value.toUpperCase();keyEnter();"/>
                <br />
              </p>              </td>
              </tr>
          <tr>
            <td height="22" colspan="5" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
          <tr>
            <td height="30" colspan="5"><input name="txt_Clave" type="password" id="txt_Clave" maxlength="16"  onkeyup="keyEnter1();" /></td>
              </tr>
			   <tr>
            <td height="22" colspan="5" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
              </tr>
          <tr>
			  
          <tr>
            <td width="27" height="30">&nbsp;</td>
            <td width="45" valign="top"><a href="javascript:F_submit();"><img src="<%= request.getContextPath() %>/imagenes/botones/Entrar_Logeo.png" alt="Entrar" width="30" height="30" border="0" /></a></td>
            <td width="28">&nbsp;</td>
            <td width="30" valign="top"><a href="javascript:f_Limpiar()"><img src="<%= request.getContextPath() %>/imagenes/botones/Salir_Logeo.png" alt="Salir" width="30" height="30" border="0" /></a></td>
            <td width="24">&nbsp;</td>
          </tr>
          
          
          
          
          
          
          
          </table></td>
          <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="85">&nbsp;</td>
        <td height="85">&nbsp;</td>
        <td height="85">&nbsp;</td>
      </tr>
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
    </table></td>
    <td width="30">&nbsp;</td>
  </tr>
  <tr>
    <td height="84">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</form>
</body>
</html>
